home *** CD-ROM | disk | FTP | other *** search
- on on startMovie
- global rwObj, gMaxColors, deskTopPattern, black
- set x to the colorDepth
- if x >= 8 then
- set gMaxColors to 0
- end if
- if x = 4 then
- set gMaxColors to 15
- end if
- if x = 2 then
- set gMaxColors to 3
- end if
- if x = 1 then
- set gMaxColors to 0
- end if
- if gMaxColors = 0 then
- put string(100) into field "colorIndex"
- else
- put string(gMaxColors / 2) into field "colorIndex"
- end if
- if factory("RearWindow") = 0 then
- openXLib("RearWindow.XObj")
- end if
- initGlobals()
- if objectp(rwObj) then
- rwObj(mdispose)
- end if
- makeObjIfNeeded()
- when mouseDown then mouseHandler
- when keyDown then keyHandler
- end
-